package com.jy.api.signUpReq.admin;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

/**
 * Created by lihu on 2017/12/27.
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class ProductSupplyTimesSignUpReq {


    @NotNull(message = "参数错误")
    private String id;


    @NotNull(message = "参数错误")
    private String storeId;


    private String name;

    /**
     * 供应开始时间段
     */
    @Max(value = 24, message = "小时数不能超过24")
    @Min(value = 0, message = "小时数不能低于0")
    private int beginHour = 0;

    /**
     * 供应开始时间段
     */
    @Max(value = 59, message = "分钟数不能超过59")
    @Min(value = 0, message = "分钟数不能低于0")
    private int beginMinute = 0;

    /**
     * 供应开始时间段
     */
    @Max(value = 24, message = "小时数不能超过24")
    @Min(value = 0, message = "小时数不能低于0")
    private int endHour = 0;

    /**
     * 供应开始时间段
     */
    @Max(value = 59, message = "分钟数不能超过59")
    @Min(value = 0, message = "分钟数不能低于0")
    private int endMinute = 0;
}
